package com.home.Validation;

public class Validator {
	public static boolean isBlank(String str)
    {
        if(str == null || (str.length() ==0))
        {
            return true;
        }
        for(int i=0;i<str.length();i++)
        {
            if(Character.isWhitespace(str.charAt(i))== false)
            {
                return false;
            }
        }
      
            return false;
        

    }

     public static boolean isNotBlank(String str)
    {
        return !Validator.isBlank(str);
    }
     
     public static boolean isDuplicate(String s1,String s2)
     {
        if(s1.equals(s2))
        {
            return true;
        }
        else
        {
            return false;
        }
     }
     
     public static boolean isNotDuplicate(String s1,String s2)
     {
        if(s1.equals(s2))
        {
            return false;
        }
        else
        {
            return true;
        }
     }
}
